#include "my_stdio.h"
#include "string.h"

int main()
{
    mFILE* pf = Myfopen("log.txt","w");
    if(pf == NULL)
        return 1;
    const char* c = "hello world\n";
    Myfwrite(c,strlen(c),pf);
    //int i = 0;
    //for(; i < pf->size; i++)
    //{
    //    printf("%c",pf->buffer[i]);
    //}
    Myfclose(pf);
    return 0;
}
